/* CarouselSwitching.css */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-title {
    font-size: 24px;
    text-align: center;
    margin: 20px 0;
}

.carousel-title span {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    /* 缩短过渡时间 */
}

.carousel-title span.move-up {
    transform: translateY(-20px);
    opacity: 0;
}

.carousel-title span.move-down {
    transform: translateY(20px);
    opacity: 0;
}

.carousel-dots {
    text-align: center;
    margin-bottom: 10px;
    /* 圆点与轮播图之间的距离 */
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #b4b8bf;
    /* 默认颜色 */
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #3284ff;
    /* 激活时的颜色 */
}

.carousel-images {
    height: 512px;
    /* 根据需求调整高度 */
    position: relative;
    overflow: hidden;
}

.carousel-image-container {
    position: relative;
    height: 100%;
    transition: transform 0.5s ease;
    /* 过渡效果 */
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* 初始透明度 */
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
    /* 仅显示当前激活的图片 */
}

.carousel-image img {
    width: 100%;
    height: 100%;
    display: block;
    /* 解决可能的间隙问题 */
}

.Enquirenow {
    width: 150px;
    height: 38px;
    color: #fff;
    border: none;
    background: url('https://cdn.dancf.com/iliad/dist/prod/577/dist/images/49cb331f-096d-42e2-8369-af837ee144d9.webp'), no-repeat;
    background-size: 100%, 100%;
}